import { createApp } from 'vue'
import App from './App.vue'
// 导入路由
import router from './router'
// 导入 element plus icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 导入 element plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 导入 element plus 的国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'

//创建实例
const app=createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

app.use(ElementPlus, {
    locale: zhCn,
  })

app.use(router).use(ElementPlus).mount('#app')
